package com.wzy.ssm.score.service.impl;

import org.springframework.stereotype.Service;
import com.wzy.ssm.score.model.ScoreList;
import com.wzy.ssm.score.model.ScoreListExample;

import java.util.List;
import com.wzy.ssm.score.mapper.ScoreListMapper;
import com.wzy.ssm.score.service.ScoreListService;

@Service
public class ScoreListServiceImpl implements ScoreListService{

    private ScoreListMapper mapper;

    //通过构�?�器注入mapper
    public ScoreListServiceImpl(ScoreListMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public long countByExample(ScoreListExample example) {
        return mapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ScoreListExample example) {
        return mapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer scoreListId) {
        return mapper.deleteByPrimaryKey(scoreListId);
    }

    @Override
    public int insert(ScoreList record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(ScoreList record) {
        return mapper.insertSelective(record);
    }

    @Override
    public List<ScoreList> selectByExample(ScoreListExample example) {
        return mapper.selectByExample(example);
    }

    @Override
    public ScoreList selectByPrimaryKey(Integer scoreListId) {
        return mapper.selectByPrimaryKey(scoreListId);
    }

    @Override
    public int updateByExampleSelective(ScoreList record,ScoreListExample example) {
        return mapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ScoreList record,ScoreListExample example) {
        return mapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(ScoreList record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ScoreList record) {
        return mapper.updateByPrimaryKey(record);
    }

}
